package com.lmh.graphdisease.entity.role;

import com.lmh.graphdisease.entity.DiseaseEntity;
import org.springframework.data.neo4j.core.schema.RelationshipId;
import org.springframework.data.neo4j.core.schema.RelationshipProperties;
import org.springframework.data.neo4j.core.schema.TargetNode;

/**
 * @author lmh
 * @desc
 * @date 2023/3/6
 */
@RelationshipProperties
public class BelongTo {
    @RelationshipId
    private Long id;

    private String name;

    @TargetNode//相当于startNode
    private DiseaseEntity diseaseEntity;

    //TargetNode(DiseaseEntity) -> 当前定义的Relationship的实体 (DepartmentEntity)

}
